home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-07-23 | 2.6 KB | 83 lines | [TEXT/MPS ] |
- # M P W 4 1 1 I N S T A L L A T I O N S C R I P T
- #
- # Copyright Apple Computer, Inc. 1990 - All rights reserved.
- #
- #
- # This script is used to install MPW 411 from the E.T.O. #1
- # distribution compact disk onto a destination hard disk.
- #
- # Options: None
- #
- # This script makes use of the following Shell variables:
- #
- # {CDVolume} - the name of the CD Distribution volume
- #
- # {DestVolume} - the name of the volume from which the Installer was launched
- #
- # {MacAppFlag} - flag indicating if MacApp is being installed (for MacApp 411)
- #
-
- Set Exit 0
-
- Set DestMPW "{DestVolume}MPW Folder:"
- Set Source411 "{CDVolume}Essentials:MPW 411:"
- Set MacApp411 "{CDVolume}Essentials:MacApp Documentation:Class&Method Reference (411):"
-
- # Copy the 411 User Startup script into the user's MPW Shell directory.
-
- # First, disable the old UserStartup script if one exists.
-
- if "`Exists -f "{DestMPW}UserStartup•~_Help_"`"
- Rename -y "{DestMPW}UserStartup•~_Help_" "{DestMPW}UserStartup.~_Help_"
- End
-
- Duplicate "{Source411}UserStartup•Help" "{DestMPW}"
-
- # Remove old help system files.
-
- If "`Exists -d "{DestMPW}Help Folder:"`"
- Delete -y "{DestMPW}Help Folder:"
- End
-
-
-
- # If requested, copy the entire 411 folder from the CD to the MPW folder
-
- if "{411Option}" == "2" ### copy all of the help files to the hard drive
-
- If Not "`Exists -d "{DestMPW}Help Files:"`"
- NewFolder "{DestMPW}Help Files"
- End
-
- Duplicate -y "{Source411}CIncludesHelp" "{DestMPW}Help Files:CIncludesHelp"
- Duplicate -y "{Source411}CIncludesHelp.index" "{DestMPW}Help Files:CIncludesHelp.index"
- Duplicate -y "{Source411}InsideMacintoshHelp" "{DestMPW}Help Files:InsideMacintoshHelp"
- Duplicate -y "{Source411}InsideMacintoshHelp.index" "{DestMPW}Help Files:InsideMacintoshHelp.index"
- Duplicate -y "{Source411}MPWHelp" "{DestMPW}Help Files:MPWHelp"
- Duplicate -y "{Source411}MPWHelp.index" "{DestMPW}Help Files:MPWHelp.index"
- Duplicate -y "{Source411}PInterfacesHelp" "{DestMPW}Help Files:PInterfacesHelp"
- Duplicate -y "{Source411}PInterfacesHelp.index" "{DestMPW}Help Files:PInterfacesHelp.index"
- Duplicate -y "{Source411}ResourcesHelp" "{DestMPW}Help Files:ResourcesHelp"
-
- If "{MacAppFlag}" != "0" ### copy the MacApp help files as well
- Duplicate -y "{MacApp411}MacApp411Help" "{DestMPW}Help Files:MacApp411Help"
- Duplicate -y "{MacApp411}MacApp411Help.index" "{DestMPW}Help Files:MacApp411Help.index"
- End
- End
-
-
- # Setup the 411 directory.
-
- Set HelpDirectory "{DestMPW}Help Folder:"
-
- If not "`Exists -d "{HelpDirectory}"`"
- NewFolder "{HelpDirectory}"
- End
-
- If "{411Option}" == "2"
- Echo "{DestMPW}Help Files:" > "{HelpDirectory}Help_Folder"
- Else
- Echo "{Source411}" > "{HelpDirectory}Help_Folder"
- End
-
-